import React, {Component} from 'react';
import {
  Dimensions,
  Image,
  ToastAndroid,
  StyleSheet,
  Text,
  View,
  ScrollView,
  TouchableOpacity,
  ActivityIndicator,
  TextInput,
  TouchableHighlight,
} from 'react-native';
import {
  getUserInfo,
  activityList,
  activityDetail,
  powerRecord,
  getMineIndex,
} from '../../api/index';

export default class MarketTest extends React.Component {
  async func() {
    // const result = await getUserInfo();
    // console.log('nickname', result.data.nickname);
    // const result = await activityDetail({activityId: '1'});
    const result = await getMineIndex();
    console.log(result);
  }

  render() {
    return (
      <View>
        <TouchableOpacity onPress={() => this.func()}>
          <Text style={{alignSelf: 'center'}}>
            本页面是营销的测试页面,点击调用接口
          </Text>
        </TouchableOpacity>

        <View>
          <Text>调用接口返回的结果是：{}</Text>
        </View>
      </View>
    );
  }
}
